package com.hospital.common.core.module.entity.NFC;

import com.hospital.common.core.constants.InsuranceDeptEnum;
import com.hospital.common.core.exception.ExceptionHelpEnum;
import lombok.Data;

@Data
public class ORG_RES {
    /**
     * 返回码
     */
    private String ret_code;
    /**
     * 返回说明
     */
    private String ret_msg;

    private Object data;

    public ORG_RES() {
        this.ret_code = InsuranceDeptEnum.SUCCESS_HOS.getCode();
        this.ret_msg = InsuranceDeptEnum.SUCCESS_HOS.getMessage();
    }

    public ORG_RES(Object obj) {
        this.ret_code = InsuranceDeptEnum.SUCCESS_HOS.getCode();
        this.ret_msg = InsuranceDeptEnum.SUCCESS_HOS.getMessage();
        this.data = obj;
    }

    public ORG_RES(InsuranceDeptEnum insuranceDeptEnum) {
        this.ret_code = insuranceDeptEnum.getCode();
        this.ret_msg = insuranceDeptEnum.getMessage();
    }

    public ORG_RES(InsuranceDeptEnum insuranceDeptEnum, ExceptionHelpEnum exceptionHelpEnum) {
        this.ret_code = insuranceDeptEnum.getCode();
        this.ret_msg = exceptionHelpEnum.getMessage();
    }

    public ORG_RES(InsuranceDeptEnum insuranceDeptEnum, String errorMsg) {
        this.ret_code = insuranceDeptEnum.getCode();
        this.ret_msg = errorMsg;
    }

}
